<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMapsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('maps', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->default('')->comment('贴图名称');
            $table->string('image')->comment('贴图');
            $table->integer('cat_id1')->default('0')->comment('关联分类二级分类');
            $table->string('widehigh')->default('')->comment('宽*高');
            $table->integer('downnum')->default(0)->comment('下载数');
            $table->integer('collecnum')->default(0)->comment('收藏数');
            $table->integer('status')->default('1')->comment('审核状态：0，1，2');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('maps');
    }
}
